<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="共几页" prop="totalPage">
        <el-input v-model="queryParams.totalPage" placeholder="请输入共几页" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="第几页" prop="page">
        <el-input v-model="queryParams.page" placeholder="请输入第几页" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="记录编号" prop="jilbh">
        <el-input v-model="queryParams.jilbh" placeholder="请输入记录编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="检测单位名称" prop="jiancdwmc">
        <el-input v-model="queryParams.jiancdwmc" placeholder="请输入检测单位名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="工程部位/用途" prop="gongcbwyt">
        <el-input v-model="queryParams.gongcbwyt" placeholder="请输入工程部位/用途" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品名称" prop="yangpmc">
        <el-input v-model="queryParams.yangpmc" placeholder="请输入样品名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品编号" prop="yangpbh">
        <el-input v-model="queryParams.yangpbh" placeholder="请输入样品编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品数量" prop="yangpsl">
        <el-input v-model="queryParams.yangpsl" placeholder="请输入样品数量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品状态" prop="yangpzt">
        <el-input v-model="queryParams.yangpzt" placeholder="请输入样品状态" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="样品时间" prop="yangpsj">
        <el-date-picker clearable v-model="queryParams.yangpsj" type="date" value-format="yyyy-MM-dd" placeholder="请选择样品时间"></el-date-picker>
      </el-form-item>
      <el-form-item label="试验检测日期" prop="shiyjcrq">
        <el-input v-model="queryParams.shiyjcrq" placeholder="请输入试验检测日期" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="试验条件温度" prop="shiytjwd">
        <el-input v-model="queryParams.shiytjwd" placeholder="请输入试验条件温度" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="试验条件湿度" prop="shiytjsd">
        <el-input v-model="queryParams.shiytjsd" placeholder="请输入试验条件湿度" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="检测依据" prop="jiancyj">
        <el-input v-model="queryParams.jiancyj" placeholder="请输入检测依据" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="判定依据" prop="pandyj">
        <el-input v-model="queryParams.pandyj" placeholder="请输入判定依据" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
        <el-input v-model="queryParams.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="附加声明" prop="fujsm">
        <el-input v-model="queryParams.fujsm" placeholder="请输入附加声明" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="筛前总土质量" prop="shaiqztzl">
        <el-input v-model="queryParams.shaiqztzl" placeholder="请输入筛前总土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="小于2mm土质量" prop="xiaoy2mmtzl">
        <el-input v-model="queryParams.xiaoy2mmtzl" placeholder="请输入小于2mm土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="小于2mm土占总土质量" prop="xiaoy2mmtzztzl">
        <el-input v-model="queryParams.xiaoy2mmtzztzl" placeholder="请输入小于2mm土占总土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="小于2mm取试样质量" prop="xiaoy2mmqsyzl">
        <el-input v-model="queryParams.xiaoy2mmqsyzl" placeholder="请输入小于2mm取试样质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm60累积留筛土质量" prop="mm60ljlstzl">
        <el-input v-model="queryParams.mm60ljlstzl" placeholder="请输入mm60累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm60小于该孔径土质量" prop="mm60xygkjtzl">
        <el-input v-model="queryParams.mm60xygkjtzl" placeholder="请输入mm60小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm60小于该孔径土质量百分比" prop="mm60xygkjtzlbfb">
        <el-input v-model="queryParams.mm60xygkjtzlbfb" placeholder="请输入mm60小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm40累积留筛土质量" prop="mm40ljlstzl">
        <el-input v-model="queryParams.mm40ljlstzl" placeholder="请输入mm40累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm40小于该孔径土质量" prop="mm40xygkjtzl">
        <el-input v-model="queryParams.mm40xygkjtzl" placeholder="请输入mm40小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm40小于该孔径土质量百分比" prop="mm40xygkjtzlbfb">
        <el-input v-model="queryParams.mm40xygkjtzlbfb" placeholder="请输入mm40小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm20累积留筛土质量" prop="mm20ljlstzl">
        <el-input v-model="queryParams.mm20ljlstzl" placeholder="请输入mm20累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm20小于该孔径土质量" prop="mm20xygkjtzl">
        <el-input v-model="queryParams.mm20xygkjtzl" placeholder="请输入mm20小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm20小于该孔径土质量百分比" prop="mm20xygkjtzlbfb">
        <el-input v-model="queryParams.mm20xygkjtzlbfb" placeholder="请输入mm20小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm10累积留筛土质量" prop="mm10ljlstzl">
        <el-input v-model="queryParams.mm10ljlstzl" placeholder="请输入mm10累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm10小于该孔径土质量" prop="mm10xygkjtzl">
        <el-input v-model="queryParams.mm10xygkjtzl" placeholder="请输入mm10小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm10小于该孔径土质量百分比" prop="mm10xygkjtzlbfb">
        <el-input v-model="queryParams.mm10xygkjtzlbfb" placeholder="请输入mm10小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm5累积留筛土质量" prop="mm5ljlstzl">
        <el-input v-model="queryParams.mm5ljlstzl" placeholder="请输入mm5累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm5小于该孔径土质量" prop="mm5xygkjtzl">
        <el-input v-model="queryParams.mm5xygkjtzl" placeholder="请输入mm5小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm5小于该孔径土质量百分比" prop="mm5xygkjtzlbfb">
        <el-input v-model="queryParams.mm5xygkjtzlbfb" placeholder="请输入mm5小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm2累积留筛土质量" prop="mm2ljlstzl">
        <el-input v-model="queryParams.mm2ljlstzl" placeholder="请输入mm2累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm2小于该孔径土质量" prop="mm2xygkjtzl">
        <el-input v-model="queryParams.mm2xygkjtzl" placeholder="请输入mm2小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm2小于该孔径土质量百分比" prop="mm2xygkjtzlbfb">
        <el-input v-model="queryParams.mm2xygkjtzlbfb" placeholder="请输入mm2小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm2占总土质量百分比" prop="mm2zztzlbfb">
        <el-input v-model="queryParams.mm2zztzlbfb" placeholder="请输入mm2占总土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm1累积留筛土质量" prop="mm1ljlstzl">
        <el-input v-model="queryParams.mm1ljlstzl" placeholder="请输入mm1累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm1小于该孔径土质量" prop="mm1xygkjtzl">
        <el-input v-model="queryParams.mm1xygkjtzl" placeholder="请输入mm1小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm1小于该孔径土质量百分比" prop="mm1xygkjtzlbfb">
        <el-input v-model="queryParams.mm1xygkjtzlbfb" placeholder="请输入mm1小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm1占总土质量百分比" prop="mm1zztzlbfb">
        <el-input v-model="queryParams.mm1zztzlbfb" placeholder="请输入mm1占总土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p5累积留筛土质量" prop="mm0p5ljlstzl">
        <el-input v-model="queryParams.mm0p5ljlstzl" placeholder="请输入mm0p5累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p5小于该孔径土质量" prop="mm0p5xygkjtzl">
        <el-input v-model="queryParams.mm0p5xygkjtzl" placeholder="请输入mm0p5小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p5小于该孔径土质量百分比" prop="mm0p5xygkjtzlbfb">
        <el-input v-model="queryParams.mm0p5xygkjtzlbfb" placeholder="请输入mm0p5小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p5占总土质量百分比" prop="mm0p5zztzlbfb">
        <el-input v-model="queryParams.mm0p5zztzlbfb" placeholder="请输入mm0p5占总土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p25累积留筛土质量" prop="mm0p25ljlstzl">
        <el-input v-model="queryParams.mm0p25ljlstzl" placeholder="请输入mm0p25累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p25小于该孔径土质量" prop="mm0p25xygkjtzl">
        <el-input v-model="queryParams.mm0p25xygkjtzl" placeholder="请输入mm0p25小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p25小于该孔径土质量百分比" prop="mm0p25xygkjtzlbfb">
        <el-input v-model="queryParams.mm0p25xygkjtzlbfb" placeholder="请输入mm0p25小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p25占总土质量百分比" prop="mm0p25zztzlbfb">
        <el-input v-model="queryParams.mm0p25zztzlbfb" placeholder="请输入mm0p25占总土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p075累积留筛土质量" prop="mm0p075ljlstzl">
        <el-input v-model="queryParams.mm0p075ljlstzl" placeholder="请输入mm0p075累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p075小于该孔径土质量" prop="mm0p075xygkjtzl">
        <el-input v-model="queryParams.mm0p075xygkjtzl" placeholder="请输入mm0p075小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p075小于该孔径土质量百分比" prop="mm0p075xygkjtzlbfb">
        <el-input v-model="queryParams.mm0p075xygkjtzlbfb" placeholder="请输入mm0p075小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="mm0p075占总土质量百分比" prop="mm0p075zztzlbfb">
        <el-input v-model="queryParams.mm0p075zztzlbfb" placeholder="请输入mm0p075占总土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="di累积留筛土质量" prop="diljlstzl">
        <el-input v-model="queryParams.diljlstzl" placeholder="请输入di累积留筛土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="di小于该孔径土质量" prop="dixygkjtzl">
        <el-input v-model="queryParams.dixygkjtzl" placeholder="请输入di小于该孔径土质量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="di小于该孔径土质量百分比" prop="dixygkjtzlbfb">
        <el-input v-model="queryParams.dixygkjtzlbfb" placeholder="请输入di小于该孔径土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="di占总土质量百分比" prop="dizztzlbfb">
        <el-input v-model="queryParams.dizztzlbfb" placeholder="请输入di占总土质量百分比" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="d60" prop="d60">
        <el-input v-model="queryParams.d60" placeholder="请输入d60" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="d30" prop="d30">
        <el-input v-model="queryParams.d30" placeholder="请输入d30" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="d10" prop="d10">
        <el-input v-model="queryParams.d10" placeholder="请输入d10" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="不均匀系数" prop="bujyxs">
        <el-input v-model="queryParams.bujyxs" placeholder="请输入不均匀系数" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="曲率系数" prop="qulxs">
        <el-input v-model="queryParams.qulxs" placeholder="请输入曲率系数" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="大于60mm含量" prop="ge60hl">
        <el-input v-model="queryParams.ge60hl" placeholder="请输入大于60mm含量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="2-60mm含量" prop="ge2le60hl">
        <el-input v-model="queryParams.ge2le60hl" placeholder="请输入2-60mm含量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="0.75-2mm含量" prop="ge0p75le2hl">
        <el-input v-model="queryParams.ge0p75le2hl" placeholder="请输入0.75-2mm含量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="小于0.75含量" prop="le0p75hl">
        <el-input v-model="queryParams.le0p75hl" placeholder="请输入小于0.75含量" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="土的鉴别分类和代号" prop="tudjbflhdh">
        <el-input v-model="queryParams.tudjbflhdh" placeholder="请输入土的鉴别分类和代号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb5 top-right-btn small-line-height">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['report_tg:tgTdklfxjlbBsInfo:add']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['report_tg:tgTdklfxjlbBsInfo:edit']">修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['report_tg:tgTdklfxjlbBsInfo:remove']">删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['report_tg:tgTdklfxjlbBsInfo:export']">导出</el-button>
      </el-col>
      <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
    </el-row>

    <el-table border stripe v-loading="loading" :data="tgTdklfxjlbBsInfoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="一份excel表格的唯一id(其他的excel主表，都应有此字段）" align="center" prop="excelId" v-if="true" />
      <el-table-column label="共几页" align="center" prop="totalPage" />
      <el-table-column label="第几页" align="center" prop="page" />
      <el-table-column label="记录编号" align="center" prop="jilbh" />
      <el-table-column label="检测单位名称" align="center" prop="jiancdwmc" />
      <el-table-column label="工程部位/用途" align="center" prop="gongcbwyt" />
      <el-table-column label="样品名称" align="center" prop="yangpmc" />
      <el-table-column label="样品编号" align="center" prop="yangpbh" />
      <el-table-column label="样品数量" align="center" prop="yangpsl" />
      <el-table-column label="样品状态" align="center" prop="yangpzt" />
      <el-table-column label="样品时间" align="center" prop="yangpsj" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.yangpsj, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="试验检测日期" align="center" prop="shiyjcrq" />
      <el-table-column label="试验条件温度" align="center" prop="shiytjwd" />
      <el-table-column label="试验条件湿度" align="center" prop="shiytjsd" />
      <el-table-column label="检测依据" align="center" prop="jiancyj" />
      <el-table-column label="判定依据" align="center" prop="pandyj" />
      <el-table-column label="主要仪器设备名称及编号" align="center" prop="zhuyyqsbmcjbh" />
      <el-table-column label="附加声明" align="center" prop="fujsm" />
      <el-table-column label="筛前总土质量" align="center" prop="shaiqztzl" />
      <el-table-column label="小于2mm土质量" align="center" prop="xiaoy2mmtzl" />
      <el-table-column label="小于2mm土占总土质量" align="center" prop="xiaoy2mmtzztzl" />
      <el-table-column label="小于2mm取试样质量" align="center" prop="xiaoy2mmqsyzl" />
      <el-table-column label="mm60累积留筛土质量" align="center" prop="mm60ljlstzl" />
      <el-table-column label="mm60小于该孔径土质量" align="center" prop="mm60xygkjtzl" />
      <el-table-column label="mm60小于该孔径土质量百分比" align="center" prop="mm60xygkjtzlbfb" />
      <el-table-column label="mm40累积留筛土质量" align="center" prop="mm40ljlstzl" />
      <el-table-column label="mm40小于该孔径土质量" align="center" prop="mm40xygkjtzl" />
      <el-table-column label="mm40小于该孔径土质量百分比" align="center" prop="mm40xygkjtzlbfb" />
      <el-table-column label="mm20累积留筛土质量" align="center" prop="mm20ljlstzl" />
      <el-table-column label="mm20小于该孔径土质量" align="center" prop="mm20xygkjtzl" />
      <el-table-column label="mm20小于该孔径土质量百分比" align="center" prop="mm20xygkjtzlbfb" />
      <el-table-column label="mm10累积留筛土质量" align="center" prop="mm10ljlstzl" />
      <el-table-column label="mm10小于该孔径土质量" align="center" prop="mm10xygkjtzl" />
      <el-table-column label="mm10小于该孔径土质量百分比" align="center" prop="mm10xygkjtzlbfb" />
      <el-table-column label="mm5累积留筛土质量" align="center" prop="mm5ljlstzl" />
      <el-table-column label="mm5小于该孔径土质量" align="center" prop="mm5xygkjtzl" />
      <el-table-column label="mm5小于该孔径土质量百分比" align="center" prop="mm5xygkjtzlbfb" />
      <el-table-column label="mm2累积留筛土质量" align="center" prop="mm2ljlstzl" />
      <el-table-column label="mm2小于该孔径土质量" align="center" prop="mm2xygkjtzl" />
      <el-table-column label="mm2小于该孔径土质量百分比" align="center" prop="mm2xygkjtzlbfb" />
      <el-table-column label="mm2占总土质量百分比" align="center" prop="mm2zztzlbfb" />
      <el-table-column label="mm1累积留筛土质量" align="center" prop="mm1ljlstzl" />
      <el-table-column label="mm1小于该孔径土质量" align="center" prop="mm1xygkjtzl" />
      <el-table-column label="mm1小于该孔径土质量百分比" align="center" prop="mm1xygkjtzlbfb" />
      <el-table-column label="mm1占总土质量百分比" align="center" prop="mm1zztzlbfb" />
      <el-table-column label="mm0p5累积留筛土质量" align="center" prop="mm0p5ljlstzl" />
      <el-table-column label="mm0p5小于该孔径土质量" align="center" prop="mm0p5xygkjtzl" />
      <el-table-column label="mm0p5小于该孔径土质量百分比" align="center" prop="mm0p5xygkjtzlbfb" />
      <el-table-column label="mm0p5占总土质量百分比" align="center" prop="mm0p5zztzlbfb" />
      <el-table-column label="mm0p25累积留筛土质量" align="center" prop="mm0p25ljlstzl" />
      <el-table-column label="mm0p25小于该孔径土质量" align="center" prop="mm0p25xygkjtzl" />
      <el-table-column label="mm0p25小于该孔径土质量百分比" align="center" prop="mm0p25xygkjtzlbfb" />
      <el-table-column label="mm0p25占总土质量百分比" align="center" prop="mm0p25zztzlbfb" />
      <el-table-column label="mm0p075累积留筛土质量" align="center" prop="mm0p075ljlstzl" />
      <el-table-column label="mm0p075小于该孔径土质量" align="center" prop="mm0p075xygkjtzl" />
      <el-table-column label="mm0p075小于该孔径土质量百分比" align="center" prop="mm0p075xygkjtzlbfb" />
      <el-table-column label="mm0p075占总土质量百分比" align="center" prop="mm0p075zztzlbfb" />
      <el-table-column label="di累积留筛土质量" align="center" prop="diljlstzl" />
      <el-table-column label="di小于该孔径土质量" align="center" prop="dixygkjtzl" />
      <el-table-column label="di小于该孔径土质量百分比" align="center" prop="dixygkjtzlbfb" />
      <el-table-column label="di占总土质量百分比" align="center" prop="dizztzlbfb" />
      <el-table-column label="d60" align="center" prop="d60" />
      <el-table-column label="d30" align="center" prop="d30" />
      <el-table-column label="d10" align="center" prop="d10" />
      <el-table-column label="不均匀系数" align="center" prop="bujyxs" />
      <el-table-column label="曲率系数" align="center" prop="qulxs" />
      <el-table-column label="大于60mm含量" align="center" prop="ge60hl" />
      <el-table-column label="2-60mm含量" align="center" prop="ge2le60hl" />
      <el-table-column label="0.75-2mm含量" align="center" prop="ge0p75le2hl" />
      <el-table-column label="小于0.75含量" align="center" prop="le0p75hl" />
      <el-table-column label="土的鉴别分类和代号" align="center" prop="tudjbflhdh" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['report_tg:tgTdklfxjlbBsInfo:edit']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['report_tg:tgTdklfxjlbBsInfo:remove']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />

    <!-- 添加或修改土的颗粒分析记录对话框 -->
    <jy-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="共几页" prop="totalPage">
          <el-input v-model="form.totalPage" placeholder="请输入共几页" />
        </el-form-item>
        <el-form-item label="第几页" prop="page">
          <el-input v-model="form.page" placeholder="请输入第几页" />
        </el-form-item>
        <el-form-item label="记录编号" prop="jilbh">
          <el-input v-model="form.jilbh" placeholder="请输入记录编号" />
        </el-form-item>
        <el-form-item label="检测单位名称" prop="jiancdwmc">
          <el-input v-model="form.jiancdwmc" placeholder="请输入检测单位名称" />
        </el-form-item>
        <el-form-item label="工程部位/用途" prop="gongcbwyt">
          <el-input v-model="form.gongcbwyt" placeholder="请输入工程部位/用途" />
        </el-form-item>
        <el-form-item label="样品名称" prop="yangpmc">
          <el-input v-model="form.yangpmc" placeholder="请输入样品名称" />
        </el-form-item>
        <el-form-item label="样品编号" prop="yangpbh">
          <el-input v-model="form.yangpbh" placeholder="请输入样品编号" />
        </el-form-item>
        <el-form-item label="样品数量" prop="yangpsl">
          <el-input v-model="form.yangpsl" placeholder="请输入样品数量" />
        </el-form-item>
        <el-form-item label="样品状态" prop="yangpzt">
          <el-input v-model="form.yangpzt" placeholder="请输入样品状态" />
        </el-form-item>
        <el-form-item label="样品时间" prop="yangpsj">
          <el-date-picker clearable v-model="form.yangpsj" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择样品时间"></el-date-picker>
        </el-form-item>
        <el-form-item label="试验检测日期" prop="shiyjcrq">
          <el-input v-model="form.shiyjcrq" placeholder="请输入试验检测日期" />
        </el-form-item>
        <el-form-item label="试验条件温度" prop="shiytjwd">
          <el-input v-model="form.shiytjwd" placeholder="请输入试验条件温度" />
        </el-form-item>
        <el-form-item label="试验条件湿度" prop="shiytjsd">
          <el-input v-model="form.shiytjsd" placeholder="请输入试验条件湿度" />
        </el-form-item>
        <el-form-item label="检测依据" prop="jiancyj">
          <el-input v-model="form.jiancyj" placeholder="请输入检测依据" />
        </el-form-item>
        <el-form-item label="判定依据" prop="pandyj">
          <el-input v-model="form.pandyj" placeholder="请输入判定依据" />
        </el-form-item>
        <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
          <el-input v-model="form.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" />
        </el-form-item>
        <el-form-item label="附加声明" prop="fujsm">
          <el-input v-model="form.fujsm" placeholder="请输入附加声明" />
        </el-form-item>
        <el-form-item label="筛前总土质量" prop="shaiqztzl">
          <el-input v-model="form.shaiqztzl" placeholder="请输入筛前总土质量" />
        </el-form-item>
        <el-form-item label="小于2mm土质量" prop="xiaoy2mmtzl">
          <el-input v-model="form.xiaoy2mmtzl" placeholder="请输入小于2mm土质量" />
        </el-form-item>
        <el-form-item label="小于2mm土占总土质量" prop="xiaoy2mmtzztzl">
          <el-input v-model="form.xiaoy2mmtzztzl" placeholder="请输入小于2mm土占总土质量" />
        </el-form-item>
        <el-form-item label="小于2mm取试样质量" prop="xiaoy2mmqsyzl">
          <el-input v-model="form.xiaoy2mmqsyzl" placeholder="请输入小于2mm取试样质量" />
        </el-form-item>
        <el-form-item label="mm60累积留筛土质量" prop="mm60ljlstzl">
          <el-input v-model="form.mm60ljlstzl" placeholder="请输入mm60累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm60小于该孔径土质量" prop="mm60xygkjtzl">
          <el-input v-model="form.mm60xygkjtzl" placeholder="请输入mm60小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm60小于该孔径土质量百分比" prop="mm60xygkjtzlbfb">
          <el-input v-model="form.mm60xygkjtzlbfb" placeholder="请输入mm60小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm40累积留筛土质量" prop="mm40ljlstzl">
          <el-input v-model="form.mm40ljlstzl" placeholder="请输入mm40累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm40小于该孔径土质量" prop="mm40xygkjtzl">
          <el-input v-model="form.mm40xygkjtzl" placeholder="请输入mm40小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm40小于该孔径土质量百分比" prop="mm40xygkjtzlbfb">
          <el-input v-model="form.mm40xygkjtzlbfb" placeholder="请输入mm40小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm20累积留筛土质量" prop="mm20ljlstzl">
          <el-input v-model="form.mm20ljlstzl" placeholder="请输入mm20累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm20小于该孔径土质量" prop="mm20xygkjtzl">
          <el-input v-model="form.mm20xygkjtzl" placeholder="请输入mm20小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm20小于该孔径土质量百分比" prop="mm20xygkjtzlbfb">
          <el-input v-model="form.mm20xygkjtzlbfb" placeholder="请输入mm20小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm10累积留筛土质量" prop="mm10ljlstzl">
          <el-input v-model="form.mm10ljlstzl" placeholder="请输入mm10累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm10小于该孔径土质量" prop="mm10xygkjtzl">
          <el-input v-model="form.mm10xygkjtzl" placeholder="请输入mm10小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm10小于该孔径土质量百分比" prop="mm10xygkjtzlbfb">
          <el-input v-model="form.mm10xygkjtzlbfb" placeholder="请输入mm10小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm5累积留筛土质量" prop="mm5ljlstzl">
          <el-input v-model="form.mm5ljlstzl" placeholder="请输入mm5累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm5小于该孔径土质量" prop="mm5xygkjtzl">
          <el-input v-model="form.mm5xygkjtzl" placeholder="请输入mm5小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm5小于该孔径土质量百分比" prop="mm5xygkjtzlbfb">
          <el-input v-model="form.mm5xygkjtzlbfb" placeholder="请输入mm5小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm2累积留筛土质量" prop="mm2ljlstzl">
          <el-input v-model="form.mm2ljlstzl" placeholder="请输入mm2累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm2小于该孔径土质量" prop="mm2xygkjtzl">
          <el-input v-model="form.mm2xygkjtzl" placeholder="请输入mm2小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm2小于该孔径土质量百分比" prop="mm2xygkjtzlbfb">
          <el-input v-model="form.mm2xygkjtzlbfb" placeholder="请输入mm2小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm2占总土质量百分比" prop="mm2zztzlbfb">
          <el-input v-model="form.mm2zztzlbfb" placeholder="请输入mm2占总土质量百分比" />
        </el-form-item>
        <el-form-item label="mm1累积留筛土质量" prop="mm1ljlstzl">
          <el-input v-model="form.mm1ljlstzl" placeholder="请输入mm1累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm1小于该孔径土质量" prop="mm1xygkjtzl">
          <el-input v-model="form.mm1xygkjtzl" placeholder="请输入mm1小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm1小于该孔径土质量百分比" prop="mm1xygkjtzlbfb">
          <el-input v-model="form.mm1xygkjtzlbfb" placeholder="请输入mm1小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm1占总土质量百分比" prop="mm1zztzlbfb">
          <el-input v-model="form.mm1zztzlbfb" placeholder="请输入mm1占总土质量百分比" />
        </el-form-item>
        <el-form-item label="mm0p5累积留筛土质量" prop="mm0p5ljlstzl">
          <el-input v-model="form.mm0p5ljlstzl" placeholder="请输入mm0p5累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm0p5小于该孔径土质量" prop="mm0p5xygkjtzl">
          <el-input v-model="form.mm0p5xygkjtzl" placeholder="请输入mm0p5小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm0p5小于该孔径土质量百分比" prop="mm0p5xygkjtzlbfb">
          <el-input v-model="form.mm0p5xygkjtzlbfb" placeholder="请输入mm0p5小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm0p5占总土质量百分比" prop="mm0p5zztzlbfb">
          <el-input v-model="form.mm0p5zztzlbfb" placeholder="请输入mm0p5占总土质量百分比" />
        </el-form-item>
        <el-form-item label="mm0p25累积留筛土质量" prop="mm0p25ljlstzl">
          <el-input v-model="form.mm0p25ljlstzl" placeholder="请输入mm0p25累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm0p25小于该孔径土质量" prop="mm0p25xygkjtzl">
          <el-input v-model="form.mm0p25xygkjtzl" placeholder="请输入mm0p25小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm0p25小于该孔径土质量百分比" prop="mm0p25xygkjtzlbfb">
          <el-input v-model="form.mm0p25xygkjtzlbfb" placeholder="请输入mm0p25小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm0p25占总土质量百分比" prop="mm0p25zztzlbfb">
          <el-input v-model="form.mm0p25zztzlbfb" placeholder="请输入mm0p25占总土质量百分比" />
        </el-form-item>
        <el-form-item label="mm0p075累积留筛土质量" prop="mm0p075ljlstzl">
          <el-input v-model="form.mm0p075ljlstzl" placeholder="请输入mm0p075累积留筛土质量" />
        </el-form-item>
        <el-form-item label="mm0p075小于该孔径土质量" prop="mm0p075xygkjtzl">
          <el-input v-model="form.mm0p075xygkjtzl" placeholder="请输入mm0p075小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="mm0p075小于该孔径土质量百分比" prop="mm0p075xygkjtzlbfb">
          <el-input v-model="form.mm0p075xygkjtzlbfb" placeholder="请输入mm0p075小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="mm0p075占总土质量百分比" prop="mm0p075zztzlbfb">
          <el-input v-model="form.mm0p075zztzlbfb" placeholder="请输入mm0p075占总土质量百分比" />
        </el-form-item>
        <el-form-item label="di累积留筛土质量" prop="diljlstzl">
          <el-input v-model="form.diljlstzl" placeholder="请输入di累积留筛土质量" />
        </el-form-item>
        <el-form-item label="di小于该孔径土质量" prop="dixygkjtzl">
          <el-input v-model="form.dixygkjtzl" placeholder="请输入di小于该孔径土质量" />
        </el-form-item>
        <el-form-item label="di小于该孔径土质量百分比" prop="dixygkjtzlbfb">
          <el-input v-model="form.dixygkjtzlbfb" placeholder="请输入di小于该孔径土质量百分比" />
        </el-form-item>
        <el-form-item label="di占总土质量百分比" prop="dizztzlbfb">
          <el-input v-model="form.dizztzlbfb" placeholder="请输入di占总土质量百分比" />
        </el-form-item>
        <el-form-item label="d60" prop="d60">
          <el-input v-model="form.d60" placeholder="请输入d60" />
        </el-form-item>
        <el-form-item label="d30" prop="d30">
          <el-input v-model="form.d30" placeholder="请输入d30" />
        </el-form-item>
        <el-form-item label="d10" prop="d10">
          <el-input v-model="form.d10" placeholder="请输入d10" />
        </el-form-item>
        <el-form-item label="不均匀系数" prop="bujyxs">
          <el-input v-model="form.bujyxs" placeholder="请输入不均匀系数" />
        </el-form-item>
        <el-form-item label="曲率系数" prop="qulxs">
          <el-input v-model="form.qulxs" placeholder="请输入曲率系数" />
        </el-form-item>
        <el-form-item label="大于60mm含量" prop="ge60hl">
          <el-input v-model="form.ge60hl" placeholder="请输入大于60mm含量" />
        </el-form-item>
        <el-form-item label="2-60mm含量" prop="ge2le60hl">
          <el-input v-model="form.ge2le60hl" placeholder="请输入2-60mm含量" />
        </el-form-item>
        <el-form-item label="0.75-2mm含量" prop="ge0p75le2hl">
          <el-input v-model="form.ge0p75le2hl" placeholder="请输入0.75-2mm含量" />
        </el-form-item>
        <el-form-item label="小于0.75含量" prop="le0p75hl">
          <el-input v-model="form.le0p75hl" placeholder="请输入小于0.75含量" />
        </el-form-item>
        <el-form-item label="土的鉴别分类和代号" prop="tudjbflhdh">
          <el-input v-model="form.tudjbflhdh" placeholder="请输入土的鉴别分类和代号" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button size="small" :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button size="small" @click="cancel">取 消</el-button>
      </div>
    </jy-dialog>
  </div>
</template>

<script>
import { listTgTdklfxjlbBsInfo, getTgTdklfxjlbBsInfo, delTgTdklfxjlbBsInfo, addTgTdklfxjlbBsInfo, updateTgTdklfxjlbBsInfo } from "@/api/report_tg/tgTdklfxjlbBsInfo";

export default {
  name: "TgTdklfxjlbBsInfo",
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 土的颗粒分析记录表格数据
      tgTdklfxjlbBsInfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        zhuyyqsbmcjbh: undefined,
        fujsm: undefined,
        shaiqztzl: undefined,
        xiaoy2mmtzl: undefined,
        xiaoy2mmtzztzl: undefined,
        xiaoy2mmqsyzl: undefined,
        mm60ljlstzl: undefined,
        mm60xygkjtzl: undefined,
        mm60xygkjtzlbfb: undefined,
        mm40ljlstzl: undefined,
        mm40xygkjtzl: undefined,
        mm40xygkjtzlbfb: undefined,
        mm20ljlstzl: undefined,
        mm20xygkjtzl: undefined,
        mm20xygkjtzlbfb: undefined,
        mm10ljlstzl: undefined,
        mm10xygkjtzl: undefined,
        mm10xygkjtzlbfb: undefined,
        mm5ljlstzl: undefined,
        mm5xygkjtzl: undefined,
        mm5xygkjtzlbfb: undefined,
        mm2ljlstzl: undefined,
        mm2xygkjtzl: undefined,
        mm2xygkjtzlbfb: undefined,
        mm2zztzlbfb: undefined,
        mm1ljlstzl: undefined,
        mm1xygkjtzl: undefined,
        mm1xygkjtzlbfb: undefined,
        mm1zztzlbfb: undefined,
        mm0p5ljlstzl: undefined,
        mm0p5xygkjtzl: undefined,
        mm0p5xygkjtzlbfb: undefined,
        mm0p5zztzlbfb: undefined,
        mm0p25ljlstzl: undefined,
        mm0p25xygkjtzl: undefined,
        mm0p25xygkjtzlbfb: undefined,
        mm0p25zztzlbfb: undefined,
        mm0p075ljlstzl: undefined,
        mm0p075xygkjtzl: undefined,
        mm0p075xygkjtzlbfb: undefined,
        mm0p075zztzlbfb: undefined,
        diljlstzl: undefined,
        dixygkjtzl: undefined,
        dixygkjtzlbfb: undefined,
        dizztzlbfb: undefined,
        d60: undefined,
        d30: undefined,
        d10: undefined,
        bujyxs: undefined,
        qulxs: undefined,
        ge60hl: undefined,
        ge2le60hl: undefined,
        ge0p75le2hl: undefined,
        le0p75hl: undefined,
        tudjbflhdh: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        excelId: [{ required: true, message: "一份excel表格的唯一id(其他的excel主表，都应有此字段）不能为空", trigger: "blur" }],
        totalPage: [{ required: true, message: "共几页不能为空", trigger: "blur" }],
        page: [{ required: true, message: "第几页不能为空", trigger: "blur" }],
        jilbh: [{ required: true, message: "记录编号不能为空", trigger: "blur" }],
        jiancdwmc: [{ required: true, message: "检测单位名称不能为空", trigger: "blur" }],
        gongcbwyt: [{ required: true, message: "工程部位/用途不能为空", trigger: "blur" }],
        yangpmc: [{ required: true, message: "样品名称不能为空", trigger: "blur" }],
        yangpbh: [{ required: true, message: "样品编号不能为空", trigger: "blur" }],
        yangpsl: [{ required: true, message: "样品数量不能为空", trigger: "blur" }],
        yangpzt: [{ required: true, message: "样品状态不能为空", trigger: "blur" }],
        yangpsj: [{ required: true, message: "样品时间不能为空", trigger: "blur" }],
        shiyjcrq: [{ required: true, message: "试验检测日期不能为空", trigger: "blur" }],
        shiytjwd: [{ required: true, message: "试验条件温度不能为空", trigger: "blur" }],
        shiytjsd: [{ required: true, message: "试验条件湿度不能为空", trigger: "blur" }],
        jiancyj: [{ required: true, message: "检测依据不能为空", trigger: "blur" }],
        pandyj: [{ required: true, message: "判定依据不能为空", trigger: "blur" }],
        zhuyyqsbmcjbh: [{ required: true, message: "主要仪器设备名称及编号不能为空", trigger: "blur" }],
        fujsm: [{ required: true, message: "附加声明不能为空", trigger: "blur" }],
        shaiqztzl: [{ required: true, message: "筛前总土质量不能为空", trigger: "blur" }],
        xiaoy2mmtzl: [{ required: true, message: "小于2mm土质量不能为空", trigger: "blur" }],
        xiaoy2mmtzztzl: [{ required: true, message: "小于2mm土占总土质量不能为空", trigger: "blur" }],
        xiaoy2mmqsyzl: [{ required: true, message: "小于2mm取试样质量不能为空", trigger: "blur" }],
        mm60ljlstzl: [{ required: true, message: "mm60累积留筛土质量不能为空", trigger: "blur" }],
        mm60xygkjtzl: [{ required: true, message: "mm60小于该孔径土质量不能为空", trigger: "blur" }],
        mm60xygkjtzlbfb: [{ required: true, message: "mm60小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm40ljlstzl: [{ required: true, message: "mm40累积留筛土质量不能为空", trigger: "blur" }],
        mm40xygkjtzl: [{ required: true, message: "mm40小于该孔径土质量不能为空", trigger: "blur" }],
        mm40xygkjtzlbfb: [{ required: true, message: "mm40小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm20ljlstzl: [{ required: true, message: "mm20累积留筛土质量不能为空", trigger: "blur" }],
        mm20xygkjtzl: [{ required: true, message: "mm20小于该孔径土质量不能为空", trigger: "blur" }],
        mm20xygkjtzlbfb: [{ required: true, message: "mm20小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm10ljlstzl: [{ required: true, message: "mm10累积留筛土质量不能为空", trigger: "blur" }],
        mm10xygkjtzl: [{ required: true, message: "mm10小于该孔径土质量不能为空", trigger: "blur" }],
        mm10xygkjtzlbfb: [{ required: true, message: "mm10小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm5ljlstzl: [{ required: true, message: "mm5累积留筛土质量不能为空", trigger: "blur" }],
        mm5xygkjtzl: [{ required: true, message: "mm5小于该孔径土质量不能为空", trigger: "blur" }],
        mm5xygkjtzlbfb: [{ required: true, message: "mm5小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm2ljlstzl: [{ required: true, message: "mm2累积留筛土质量不能为空", trigger: "blur" }],
        mm2xygkjtzl: [{ required: true, message: "mm2小于该孔径土质量不能为空", trigger: "blur" }],
        mm2xygkjtzlbfb: [{ required: true, message: "mm2小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm2zztzlbfb: [{ required: true, message: "mm2占总土质量百分比不能为空", trigger: "blur" }],
        mm1ljlstzl: [{ required: true, message: "mm1累积留筛土质量不能为空", trigger: "blur" }],
        mm1xygkjtzl: [{ required: true, message: "mm1小于该孔径土质量不能为空", trigger: "blur" }],
        mm1xygkjtzlbfb: [{ required: true, message: "mm1小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm1zztzlbfb: [{ required: true, message: "mm1占总土质量百分比不能为空", trigger: "blur" }],
        mm0p5ljlstzl: [{ required: true, message: "mm0p5累积留筛土质量不能为空", trigger: "blur" }],
        mm0p5xygkjtzl: [{ required: true, message: "mm0p5小于该孔径土质量不能为空", trigger: "blur" }],
        mm0p5xygkjtzlbfb: [{ required: true, message: "mm0p5小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm0p5zztzlbfb: [{ required: true, message: "mm0p5占总土质量百分比不能为空", trigger: "blur" }],
        mm0p25ljlstzl: [{ required: true, message: "mm0p25累积留筛土质量不能为空", trigger: "blur" }],
        mm0p25xygkjtzl: [{ required: true, message: "mm0p25小于该孔径土质量不能为空", trigger: "blur" }],
        mm0p25xygkjtzlbfb: [{ required: true, message: "mm0p25小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm0p25zztzlbfb: [{ required: true, message: "mm0p25占总土质量百分比不能为空", trigger: "blur" }],
        mm0p075ljlstzl: [{ required: true, message: "mm0p075累积留筛土质量不能为空", trigger: "blur" }],
        mm0p075xygkjtzl: [{ required: true, message: "mm0p075小于该孔径土质量不能为空", trigger: "blur" }],
        mm0p075xygkjtzlbfb: [{ required: true, message: "mm0p075小于该孔径土质量百分比不能为空", trigger: "blur" }],
        mm0p075zztzlbfb: [{ required: true, message: "mm0p075占总土质量百分比不能为空", trigger: "blur" }],
        diljlstzl: [{ required: true, message: "di累积留筛土质量不能为空", trigger: "blur" }],
        dixygkjtzl: [{ required: true, message: "di小于该孔径土质量不能为空", trigger: "blur" }],
        dixygkjtzlbfb: [{ required: true, message: "di小于该孔径土质量百分比不能为空", trigger: "blur" }],
        dizztzlbfb: [{ required: true, message: "di占总土质量百分比不能为空", trigger: "blur" }],
        d60: [{ required: true, message: "d60不能为空", trigger: "blur" }],
        d30: [{ required: true, message: "d30不能为空", trigger: "blur" }],
        d10: [{ required: true, message: "d10不能为空", trigger: "blur" }],
        bujyxs: [{ required: true, message: "不均匀系数不能为空", trigger: "blur" }],
        qulxs: [{ required: true, message: "曲率系数不能为空", trigger: "blur" }],
        ge60hl: [{ required: true, message: "大于60mm含量不能为空", trigger: "blur" }],
        ge2le60hl: [{ required: true, message: "2-60mm含量不能为空", trigger: "blur" }],
        ge0p75le2hl: [{ required: true, message: "0.75-2mm含量不能为空", trigger: "blur" }],
        le0p75hl: [{ required: true, message: "小于0.75含量不能为空", trigger: "blur" }],
        tudjbflhdh: [{ required: true, message: "土的鉴别分类和代号不能为空", trigger: "blur" }]
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询土的颗粒分析记录列表 */
    getList() {
      this.loading = true;
      listTgTdklfxjlbBsInfo(this.queryParams).then((response) => {
        this.tgTdklfxjlbBsInfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        excelId: undefined,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        zhuyyqsbmcjbh: undefined,
        fujsm: undefined,
        delFlag: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        shaiqztzl: undefined,
        xiaoy2mmtzl: undefined,
        xiaoy2mmtzztzl: undefined,
        xiaoy2mmqsyzl: undefined,
        mm60ljlstzl: undefined,
        mm60xygkjtzl: undefined,
        mm60xygkjtzlbfb: undefined,
        mm40ljlstzl: undefined,
        mm40xygkjtzl: undefined,
        mm40xygkjtzlbfb: undefined,
        mm20ljlstzl: undefined,
        mm20xygkjtzl: undefined,
        mm20xygkjtzlbfb: undefined,
        mm10ljlstzl: undefined,
        mm10xygkjtzl: undefined,
        mm10xygkjtzlbfb: undefined,
        mm5ljlstzl: undefined,
        mm5xygkjtzl: undefined,
        mm5xygkjtzlbfb: undefined,
        mm2ljlstzl: undefined,
        mm2xygkjtzl: undefined,
        mm2xygkjtzlbfb: undefined,
        mm2zztzlbfb: undefined,
        mm1ljlstzl: undefined,
        mm1xygkjtzl: undefined,
        mm1xygkjtzlbfb: undefined,
        mm1zztzlbfb: undefined,
        mm0p5ljlstzl: undefined,
        mm0p5xygkjtzl: undefined,
        mm0p5xygkjtzlbfb: undefined,
        mm0p5zztzlbfb: undefined,
        mm0p25ljlstzl: undefined,
        mm0p25xygkjtzl: undefined,
        mm0p25xygkjtzlbfb: undefined,
        mm0p25zztzlbfb: undefined,
        mm0p075ljlstzl: undefined,
        mm0p075xygkjtzl: undefined,
        mm0p075xygkjtzlbfb: undefined,
        mm0p075zztzlbfb: undefined,
        diljlstzl: undefined,
        dixygkjtzl: undefined,
        dixygkjtzlbfb: undefined,
        dizztzlbfb: undefined,
        d60: undefined,
        d30: undefined,
        d10: undefined,
        bujyxs: undefined,
        qulxs: undefined,
        ge60hl: undefined,
        ge2le60hl: undefined,
        ge0p75le2hl: undefined,
        le0p75hl: undefined,
        tudjbflhdh: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.excelId);
      this.single = selection.length !== 1;
      this.multiple = !selection.length;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加土的颗粒分析记录";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const excelId = row.excelId || this.ids;
      getTgTdklfxjlbBsInfo(excelId).then((response) => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改土的颗粒分析记录";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.excelId != null) {
            updateTgTdklfxjlbBsInfo(this.form)
              .then((response) => {
                this.$modal.msgSuccess("修改成功");
                this.open = false;
                this.getList();
              })
              .finally(() => {
                this.buttonLoading = false;
              });
          } else {
            addTgTdklfxjlbBsInfo(this.form)
              .then((response) => {
                this.$modal.msgSuccess("新增成功");
                this.open = false;
                this.getList();
              })
              .finally(() => {
                this.buttonLoading = false;
              });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const excelIds = row.excelId || this.ids;
      this.$modal
        .confirm('是否确认删除土的颗粒分析记录编号为"' + excelIds + '"的数据项？')
        .then(() => {
          this.loading = true;
          return delTgTdklfxjlbBsInfo(excelIds);
        })
        .then(() => {
          this.loading = false;
          this.getList();
          this.$modal.msgSuccess("删除成功");
        })
        .catch(() => {})
        .finally(() => {
          this.loading = false;
        });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download(
        "report_tg/tgTdklfxjlbBsInfo/export",
        {
          ...this.queryParams
        },
        `tgTdklfxjlbBsInfo_${new Date().getTime()}.xlsx`
      );
    }
  }
};
</script>
